qualcommax: ipq50xx: fix qca8337 dtc warnings
authorGeorge Moussalem <[email protected]>
Sat, 29 Nov 2025 17:01:48 +0000 (21:01 +0400)
committerRobert Marko <[email protected]>
Sun, 7 Dec 2025 10:25:40 +0000 (11:25 +0100)
Add missing address-cells and size-cells properties under the switch's
ports node to fix a multitude of below build warnings:

Warning (reg_format): /soc@0/mdio@90000/ethernet-switch@11/ports/port@1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (avoid_default_addr_size): /soc@0/mdio@90000/ethernet-switch@11/ports/port@1: Relying on default #address-cells value

Signed-off-by: George Moussalem <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20982
Signed-off-by: Robert Marko <[email protected]>
target/linux/qualcommax/files/arch/arm64/boot/dts/qcom/ipq5018-ax6000.dts

index bfe9589ecd0c5f20c4876bede6b59eecb7f10e6c..4782101483b7ab9ba7360df7b450a368775fcfc8 100644 (file)
                reg = <17>;
 
                ports {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
                        port@1 {
                                reg = <1>;
                                label = "lan1";